<%-- 
    Document   : el1
    Created on : 2014/8/18, 下午 03:19:43
    Author     : Benny
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    request.setAttribute("x", "Welcome");
    session.setAttribute("y", "Hello");
    application.setAttribute("z", "Information");
    request.setAttribute("y", "y");
    request.setAttribute("z", "z");
    %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>EL1</title>
    </head>
    <body>
        <h1>-----EL1-----</h1>
        <hr>
        ${x}<br>
        ${sessionScope.y}<br>
        ${applicationScope.z}<br>
        <%= request.getParameter("id") %> <br>
        ${param.id}
        <c:if test="${param.id==null}">
            沒輸入ID值！
        </c:if>
        <c:if test="${empty param.id}">
            沒輸入ID值！(2)
        </c:if>
    </body>
</html>
